home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d26 / sf40_a.arc / TCOLORS.BAS < prev    next >
BASIC Source File  |  1990-12-09  |  4KB  |  90 lines

  1. 10 KEY OFF:CLS:SCREEN 1:COLOR 1,7
  2. 12 IF XX = 3 THEN 110
  3. 13 GOSUB 8500
  4. 14 A = 0:FOR T = 0 TO 9:CLS:DRAW "S14"
  5. 15 RANDOMIZE TIMER:L=INT(RND*7)+1:IF L=SV THEN 15
  6. 16 TR=0
  7. 18 GOSUB 150
  8. 20 ON L GOSUB 170,190,230,260,290,330,370
  9. 22 K3$=INKEY$:IF K3$="" THEN 20
  10. 24 IF ASC(K3$)=27 THEN CHAIN "TEST1",,ALL
  11. 26 G=ASC(K3$)-48:IF G>7 OR G<0 THEN 20
  12. 30 IF L=G THEN A= A +1:LOCATE 6,25:PRINT"CORRECT!":ON XX GOSUB 6050:FOR X= 0 TO 2000:NEXT:GOTO 50
  13. 35 TR=TR+1:IF TR=1 THEN LOCATE 5,10: PRINT"TRY AGAIN.":GOSUB 9000:GOTO 20
  14. 40 LOCATE 5,25:PRINT"NO, IT'S "; L :ON XX GOSUB 6080
  15. 45 FR$(T)=LS$(L):FOR X =1 TO 2000:NEXT:GOTO 50
  16. 50 SV=L:NEXT
  17. 60 CLS:PRINT TAB(10)"YOUR SCORE = ";A " OUT OF 10.":IF A <>10 THEN PRINT:PRINT TAB(10)"MISSED WERE:"
  18. 61 PRINT
  19. 65 FOR I=0 TO 9:PRINT TAB(10) FR$(I):NEXT
  20. 66 PRINT
  21. 70 LOCATE 16,10:INPUT "PLAY AGAIN (Y/N)";AN$
  22. 80 IF AN$="Y" THEN 14
  23. 90 IF AN$="N" THEN CHAIN "TEST1",,ALL
  24. 100 GOTO 70
  25. 110 CLS:GOSUB 150 'display menu
  26. 112 K3$=INKEY$:IF K3$="" THEN 112
  27. 114 IF ASC(K3$)=27 THEN CHAIN "TEST1",,ALL
  28. 116 G=ASC(K3$)-48:IF G>7 OR G<0 THEN 112
  29. 120 L=G:DRAW "S14"
  30. 130 ON L GOSUB 170,190,230,260,290,330,370
  31. 140 GOTO 110
  32. 150 LOCATE 1,7:PRINT"1=BLACK:2=WHITE:3=RED:4=BLUE:
  33. 155 LOCATE 3,8:PRINT"5=YELLOW:6=GREEN:7=PURPLE:
  34. 160 LOCATE 22,20:PRINT"PRESS A NUMBER          <ESC> FOR MENU":RETURN
  35. 170 N1$="U6E5R10F1D1G1L5F1D1G1D1G1D1G1L3D2
  36. 175 A$=N1$:GOSUB 2000
  37. 180  DRAW "C0M150,100C3":DRAW A$:DRAW H$:GOSUB 9000
  38. 181 DRAW "C0M150,100":DRAW A$
  39. 182 DRAW "M90,100C3":DRAW A$:GOSUB 9000:DRAW "C0M90,100XA$;":GOSUB 9000:RETURN
  40. 190 N2$="U2H2U3 h3u2e1r1d1f3u1h2u4e1r1f1d2f2U9E1R1F1D7f1e1U8E1R1F1D11f2r2e1r3d1g4l2d1g2d2
  41. 210 A$=N2$:GOSUB 3000:DRAW BD$
  42. 211  DRAW "C0M150,100C3S8":DRAW A$
  43. 212 B$="U3H2U4 E1R2   U1 E1R1F1E1R2F1R1E1  R2F1D3 F2E1R2D1G4L2D2"
  44. 213 DRAW "C0M150,100XA$;"
  45. 220  DRAW "M150,100C3S8":DRAW B$
  46. 221 DRAW "C0M150,100XB$;M150,100C3XA$;":RETURN
  47. 230  N3$="U2  H3U4E1R1 u1E1R1      h3u1e1r1f2D3u6e1r1f1d5  f2  r2f1d4g2d3
  48. 240 A$=N3$:GOSUB 2000
  49. 250 FOR I = 1 TO 3:DRAW "S14C0M160,100C3":DRAW H$:DRAW "C0M145,160c3":DRAW A$:DRAW "C0M145,160":DRAW A$
  50. 251 DRAW "M145,180C3":DRAW A$:DRAW "C0M145,180C0":DRAW A$:DRAW "C0M145,160C3":DRAW A$
  51. 252                      NEXT:RETURN
  52. 260 N4$="U3H3U12E1R1F1D6U9E1R1F1D7U9E1R1F1D8U8E1R1F1D10R3L5F2R1D3U3L1H2R5F2D4G3D4
  53. 270 A$=N4$
  54. 271  DRAW "C0M150,100C3":DRAW A$:GOSUB 9000
  55. 272  B$="U3H2U12E1R1  D6U9E1R1  D7U9E1R1  D8U8E1R1F1D11   L3G1D1F1  R1F1 D2U2H1L1H1U1E1R4F1D7G1D5
  56. 280 DRAW "C0M150,100XA$;M150,100C3S14":DRAW B$:GOSUB 9000
  57. 281 C$="U3H2U6E3    D3U13E1R1F1D9F2D10G1D2"
  58. 282 DRAW "C0M150,100XB$;M150,100C3S14":DRAW C$:GOSUB 9000
  59. 285 DRAW "C0M150,100XC$;M150,100C3S14":DRAW A$:GOSUB 9000:DRAW "C0M150,100XA$;":RETURN
  60. 290  N5$="U3H3U10E1R1F1D4E1R2D4G1L1H1U2D2F1R1E1U4E1R2D5G1L1H1F1R1E1
  61. 300  Y2$="U4E1R1F1D3G1L1H1F1R1E1U1F1r1u2e1r1f1d5g4d3
  62. 310 A$=N5$+Y2$
  63. 320  DRAW "C0M150,100C3":DRAW A$:GOSUB 9000:DRAW "C0M150,100XA$;"
  64. 321   B$="U3H3U10E1R1F1D4 G1D3F1D1F1H1U4E1U1E1R2F1D1U1H1 L2G1D5F1R1E1U3E3R1F1D4G2D2U2E1D5G1D1
  65. 322 DRAW "C0M150,100 C3S14":DRAW B$:GOSUB 9000
  66. 323 DRAW "C0M150,100XB$;M150,100C3S14":DRAW A$:RETURN
  67. 330  N6$="U2H2U1H1L3H1U2R4E1U1H2L5H1U2R10 F6D3G1D5
  68. 350  A$=N6$
  69. 360  DRAW "C0M150,100C3":DRAW A$:GOSUB 9000:DRAW "C0M150,100XA$;M150,100"
  70. 361 B$="U2H3U1H1L5H1U2R5E3U1L7G1D1F1R5L5H1U1E1R14F5D3G2D3"
  71. 362 DRAW "C3S14":DRAW B$:GOSUB 9000:DRAW "C0M150,100XB$;"
  72. 363 DRAW "M150,100C3S14":DRAW A$:RETURN
  73. 370  N7$="U3L1H3R2E1U1L3D2U2R3E1U2L5D1F2H1R2L2U1U1G5L1H1U1 E6R3L11H1U1E1R16F3L11F3R4F2H2L4H3R12F4D4G3D2":'G1E1F2D3G2D4
  74. 380  A$=N7$:FOR I=1 TO 2
  75. 390 DRAW "C0M150 ,100C3":DRAW A$:DRAW "C0
  76. 391 DRAW "M150 ,100  ":DRAW A$
  77. 400 DRAW "M150,150C3":DRAW A$:DRAW "C0M150,150":DRAW A$:NEXT
  78. 401 DRAW "M150,100C3":DRAW A$:DRAW "C0M150,100XA$;":RETURN
  79. 2000 H$="L3H4U5E3R5F3D5G4L3C0BE1BU1C3R2L1BU1U3H1L2R2F1E1R2":RETURN
  80. 3000 BD$= "C0M140,100C3S18U8E2R3E1U2F2R2E2D2F1R3F2D8":RETURN
  81. 6050 PLAY "L64O3CDEFGAB>C"
  82. 6070 RETURN
  83. 6080 FOR X=130 TO 115 STEP -5
  84. 6090 SOUND X,2:NEXT:RETURN
  85. 8000 DATA BLACK,WHITE,RED,BLUE,YELLOW,GREEN,PURPLE
  86. 8499 REM INIT TEST VARIABLES
  87. 8500 FOR I=1 TO 7:READ LS$(I):NEXT
  88. 8550 FOR T=0 TO 9:FR$(T)="":NEXT:RETURN
  89. 9000 FOR DL=0 TO 1500+ZZ:NEXT:RETURN
  90.